package cf.luobo.covid_19.service.imp;

import cf.luobo.covid_19.dao.ProvinceDao;
import cf.luobo.covid_19.javaBean.pojo.ErrMsg;
import cf.luobo.covid_19.javaBean.pojo.Province;
import cf.luobo.covid_19.service.ProvinceService;

import java.sql.Date;
import java.util.List;

public class ProvinceServiceImp implements ProvinceService {
    private ProvinceDao dao = new ProvinceDao();

    @Override
    public List<Province> allList(Date date_in) {
        return dao.allList(date_in);
    }

    @Override
    public Province selectPro(String name_in, Date date_in) {
        return dao.selectPro(name_in, date_in);
    }

    @Override
    public ErrMsg updatePro(Province province, Date date_in) {
        return dao.updateProvince(province, date_in);
    }
}
